From 03984b28e3767e876d4e0a29488df23c173f09b1 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 11 Apr 2006 17:27:58 +0000 Subject: [PATCH] Improve read examples. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1874 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/format_skeleton.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gpsbabel/format_skeleton.c b/gpsbabel/format_skeleton.c index 64485cb19..6d462c94b 100644 --- a/gpsbabel/format_skeleton.c +++ b/gpsbabel/format_skeleton.c @@ -74,6 +74,25 @@ format_skeleton_read(void) { // your special code to extract waypoint, route and track // information from file "fin" +// For waypoints: +// while (have waypoints) { +// waypoint = waypt_new() +// populate waypoint +// waypt_add(waypoint); +// } +// +// For routes: +// +// route = route_head_alloc(); +// populate struct route_hdr +// while (have more routepoints) { +// waypoint = waypt_new() +// populate waypoint +// route_add_head(route, waypoint) +// } +// +// Tracks are just like routes, except the word "track" replaces "routes". +// } static void -- 2.30.2